package com.board.form;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;
import javax.validation.constraints.Size;

import lombok.Data;

@Data
public class StoreRegisterForm {

    @NotBlank(message = "登录账号不能为空")
    @Pattern(regexp = "^[a-zA-Z0-9]{6,12}$", message = "登录账号必须为6-12位字母或数字")
    private String storeLoginAccount; // 登录账号

    @NotBlank(message = "密码不能为空")
    @Pattern(regexp = "^[a-zA-Z0-9]{6,12}$", message = "密码必须为6-12位字母或数字")
    private String storePass; // 密码

    @NotBlank(message = "商家名称不能为空")
    private String storeName; // 商家名称

    @NotBlank(message = "创建人手机号不能为空")
    @Pattern(regexp = "^1[3-9]\\d{9}$", message = "手机号格式不正确")
    private String createPersonPhone; // 创建人手机号

    @NotBlank(message = "创建人姓名不能为空")
    private String createName; // 创建人姓名

    @NotBlank(message = "验证码不能为空")
    private String registerCode; // 验证码
}
